package cn.liberals.service.impl;

import cn.liberals.domain.Store;
import cn.liberals.mapper.StoreMapper;
import cn.liberals.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class StroeServiceImpl implements IStoreService {
    @Autowired
    private StoreMapper storeMapper;

    @Override
    @Transactional
    public void add(Store store) {
        storeMapper.add(store);
    }
}
